<?
// create image
$image = imagecreatetruecolor(600, 400);
$puregreen  = imagecolorallocate($image, 0x00, 0xFF, 0x00);

for( $l = 50; $l <= 550; $l += 5 ) {
	if( $da == 0 ) {
		$da = 1;
	}
	elseif( $da == 1 ){
		imageline( $image, $l, 200, $l+5, 200, $puregreen );
		$da = 0;
	}
}

// flush image
header( 'Content-type: image/png' );
imagepng( $image );
imagedestroy( $image );
?>
